<template>
  <div>
    <router-view />
    <van-tabbar v-model="active" v-show="$route.meta.istrun">
      <van-tabbar-item replace to="/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/hot" icon="fire-o" dot
        >热推</van-tabbar-item
      >
      <van-tabbar-item replace to="/info" icon="friends-o" badge="5"
        >消息</van-tabbar-item
      >
      <van-tabbar-item replace to="/mine" icon="user-o" badge="20"
        >我</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<style scoped>
</style>

<script>
export default {
  setup() {},
  data() {
    return {
      active: 0,
    };
  },
};
</script>

